<template>
	<view>
		<navigator url="/pages/SafetyCheckingform/SafetyCheckingform" open-type="navigate">
		    <view style="margin: 10px; " >
			    <view style="padding: 5px; background-color: #3CB371; color:white; font-size: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center;">
				    <text>新增安全检查</text>
			    </view>
		    </view>
		</navigator>
		
		<view v-if="formData1" >
						<uni-card>
						<view slot="title" class="card-title">序号：</view>
						
							<view>部门：{{formData1.major}}</view>
							<view>检查地点：{{formData1.line}}</view>
							<view>检查类别：{{formData1.danger}}</view>
							<view>检查日期：{{formData1.location}}</view>
							<view>审批人：{{formData1.fault}}</view>
							<view>检查人：{{formData1.grade}}</view>
							<view>问题描述：{{formData1.details}}</view>
						
						</uni-card>
		  </view>
				
		<view v-else>暂无数据</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				formData1: null,
			}
		},
		methods: {
			
		},
		onLoad() {
		  this.formData1 = uni.getStorageSync('formData1');
		  
		}
	}
</script>

<style>
	.card-title {
	  background-color: #3CB371;
	  color: white;
	  font-weight: bold;
	  padding: 10px;
	  border-top-left-radius: 10px;
	  border-top-right-radius: 10px;
	  display: flex;
	  justify-content: center;
	}
	
	.form1{
		background-color: #fff;
		border-radius: 12px;
		box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.12);
		padding: 20px;
		margin: 5px;
	}
</style>
